//
// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.2.8-b130911.1802 生成的
// 请访问 <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
// 在重新编译源模式时, 对此文件的所有修改都将丢失。
// 生成时间: 2016.04.07 时间 01:11:04 PM CST 
//


package com.kcht.itsed.mws.alemodel;

import org.w3c.dom.Element;

import javax.xml.bind.annotation.*;
import javax.xml.namespace.QName;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;


/**
 * <p>ECReportSpec complex type的 Java 类。
 * 
 * <p>以下模式片段指定包含在此类中的预期内容。
 * 
 * <pre>
 * &lt;complexType name="ECReportSpec">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="reportSet" type="{urn:epcglobal:ale:xsd:1}ECReportSetSpec"/>
 *         &lt;element name="filterSpec" type="{urn:epcglobal:ale:xsd:1}ECFilterSpec" minOccurs="0"/>
 *         &lt;element name="groupSpec" type="{urn:epcglobal:ale:xsd:1}ECGroupSpec" minOccurs="0"/>
 *         &lt;element name="output" type="{urn:epcglobal:ale:xsd:1}ECReportOutputSpec"/>
 *         &lt;element name="extension" type="{urn:epcglobal:ale:xsd:1}ECReportSpecExtension" minOccurs="0"/>
 *         &lt;any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
 *       &lt;/sequence>
 *       &lt;attribute name="reportName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       &lt;attribute name="reportIfEmpty" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       &lt;attribute name="reportOnlyOnChange" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
 *       &lt;anyAttribute processContents='lax'/>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ECReportSpec", propOrder = {
    "reportSet",
    "filterSpec",
    "groupSpec",
    "output",
    "extension",
    "any"
})
public class ECReportSpec {

    @XmlElement(required = true)
    protected ECReportSetSpec reportSet;
    protected ECFilterSpec filterSpec;
    protected ECGroupSpec groupSpec;
    @XmlElement(required = true)
    protected ECReportOutputSpec output;
    protected ECReportSpecExtension extension;
    @XmlAnyElement(lax = true)
    protected List<Object> any;
    @XmlAttribute(name = "reportName", required = true)
    protected String reportName;
    @XmlAttribute(name = "reportIfEmpty")
    protected Boolean reportIfEmpty;
    @XmlAttribute(name = "reportOnlyOnChange")
    protected Boolean reportOnlyOnChange;
    @XmlAnyAttribute
    private Map<QName, String> otherAttributes = new HashMap<QName, String>();

    /**
     * 获取reportSet属性的值。
     * 
     * @return
     *     possible object is
     *     {@link ECReportSetSpec }
     *     
     */
    public ECReportSetSpec getReportSet() {
        return reportSet;
    }

    /**
     * 设置reportSet属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link ECReportSetSpec }
     *     
     */
    public void setReportSet(ECReportSetSpec value) {
        this.reportSet = value;
    }

    /**
     * 获取filterSpec属性的值。
     * 
     * @return
     *     possible object is
     *     {@link ECFilterSpec }
     *     
     */
    public ECFilterSpec getFilterSpec() {
        return filterSpec;
    }

    /**
     * 设置filterSpec属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link ECFilterSpec }
     *     
     */
    public void setFilterSpec(ECFilterSpec value) {
        this.filterSpec = value;
    }

    /**
     * 获取groupSpec属性的值。
     * 
     * @return
     *     possible object is
     *     {@link ECGroupSpec }
     *     
     */
    public ECGroupSpec getGroupSpec() {
        return groupSpec;
    }

    /**
     * 设置groupSpec属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link ECGroupSpec }
     *     
     */
    public void setGroupSpec(ECGroupSpec value) {
        this.groupSpec = value;
    }

    /**
     * 获取output属性的值。
     * 
     * @return
     *     possible object is
     *     {@link ECReportOutputSpec }
     *     
     */
    public ECReportOutputSpec getOutput() {
        return output;
    }

    /**
     * 设置output属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link ECReportOutputSpec }
     *     
     */
    public void setOutput(ECReportOutputSpec value) {
        this.output = value;
    }

    /**
     * 获取extension属性的值。
     * 
     * @return
     *     possible object is
     *     {@link ECReportSpecExtension }
     *     
     */
    public ECReportSpecExtension getExtension() {
        return extension;
    }

    /**
     * 设置extension属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link ECReportSpecExtension }
     *     
     */
    public void setExtension(ECReportSpecExtension value) {
        this.extension = value;
    }

    /**
     * Gets the value of the any property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the any property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getAny().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link Object }
     * {@link Element }
     * 
     * 
     */
    public List<Object> getAny() {
        if (any == null) {
            any = new ArrayList<Object>();
        }
        return this.any;
    }

    /**
     * 获取reportName属性的值。
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getReportName() {
        return reportName;
    }

    /**
     * 设置reportName属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setReportName(String value) {
        this.reportName = value;
    }

    /**
     * 获取reportIfEmpty属性的值。
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public boolean isReportIfEmpty() {
        if (reportIfEmpty == null) {
            return false;
        } else {
            return reportIfEmpty;
        }
    }

    /**
     * 设置reportIfEmpty属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setReportIfEmpty(Boolean value) {
        this.reportIfEmpty = value;
    }

    /**
     * 获取reportOnlyOnChange属性的值。
     * 
     * @return
     *     possible object is
     *     {@link Boolean }
     *     
     */
    public boolean isReportOnlyOnChange() {
        if (reportOnlyOnChange == null) {
            return false;
        } else {
            return reportOnlyOnChange;
        }
    }

    /**
     * 设置reportOnlyOnChange属性的值。
     * 
     * @param value
     *     allowed object is
     *     {@link Boolean }
     *     
     */
    public void setReportOnlyOnChange(Boolean value) {
        this.reportOnlyOnChange = value;
    }

    /**
     * Gets a map that contains attributes that aren't bound to any typed property on this class.
     * 
     * <p>
     * the map is keyed by the name of the attribute and 
     * the value is the string value of the attribute.
     * 
     * the map returned by this method is live, and you can add new attribute
     * by updating the map directly. Because of this design, there's no setter.
     * 
     * 
     * @return
     *     always non-null
     */
    public Map<QName, String> getOtherAttributes() {
        return otherAttributes;
    }

}
